package com.foreknow.test04;

public class Example {
    public static void main(String[] args) {
        int a[]={22,20,10,15,51,71,19,12,11,18};
        int min=a[0];
        for(int i=0;i<a.length;i++){
            if(min>a[i]){
                min=a[i];
            }
        }
        System.out.println("最小值："+min);
        }
    }

